package cn.edu.xust.Vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MenuVo {

    private Integer id;

    private String label;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)  //不为空的时候，这个字段才带。否则就不带
    private List<MenuVo> children;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)  //不为空的时候，这个字段才带。否则就不带
    private String path;
}
